package com._520it.crm.web.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com._520it.crm.domain.Check;
import com._520it.crm.service.ICheckService;
@Controller
public class CheckController {
	@Autowired
	private ICheckService service;
	@RequestMapping("/check")
	public String index(){
		return "check/index";
	}
	@RequestMapping("/check_selectAll")
	@ResponseBody
	public List<Check> selectAll(){
		return service.selectAll();
	}
}
